package com.onlineMIS.ORM.entity.headQ.finance;

import java.util.Date;

import com.onlineMIS.common.Common_util;

public class FinanceBillCorpFlowVO {

	private int id;
	private int hcId;
	private String fromCategory;
	private String toCategory;
	private String name;
	private String statusS;
	private int status;
	private double amount;
	private String comment;
	private String date;
	private String createDate;
	private String lastUpdateDate;
	private String accounting;
	
	public FinanceBillCorpFlowVO() {

	}

	public FinanceBillCorpFlowVO(FinanceBillCorpFlow financeBillCorpFlow) {
		this.id = financeBillCorpFlow.getId();
		this.hcId = financeBillCorpFlow.getId();
		this.fromCategory = financeBillCorpFlow.getFromAcctId().getItemName();
		this.toCategory = financeBillCorpFlow.getToAcctId().getItemName();
		this.name = financeBillCorpFlow.getUserId().getUser_name();
		this.status = financeBillCorpFlow.getStatus();
		this.statusS = financeBillCorpFlow.getStatusMap().get(financeBillCorpFlow.getStatus());
		this.amount = financeBillCorpFlow.getAmount();
		this.comment = financeBillCorpFlow.getComment();
		this.date = Common_util.dateFormat.format(financeBillCorpFlow.getDate());
		this.createDate = Common_util.dateFormat_f.format(financeBillCorpFlow.getCreateDate());
		this.lastUpdateDate = Common_util.dateFormat_f.format(financeBillCorpFlow.getLastUpdateDate());
		this.accounting = financeBillCorpFlow.getUserId().getUser_name();
	}

	public String getStatusS() {
		return statusS;
	}

	public void setStatusS(String statusS) {
		this.statusS = statusS;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "FinanceBillCorpFlowVO [id=" + id + ", fromCategory=" + fromCategory + ", toCategory=" + toCategory
				+ ", name=" + name + ", status=" + status + ", amount=" + amount + ", comment=" + comment + ", date="
				+ date + ", createDate=" + createDate + ", lastUpdateDate=" + lastUpdateDate + "]";
	}

	public int getHcId() {
		return hcId;
	}

	public void setHcId(int hcId) {
		this.hcId = hcId;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getFromCategory() {
		return fromCategory;
	}

	public void setFromCategory(String fromCategory) {
		this.fromCategory = fromCategory;
	}

	public String getToCategory() {
		return toCategory;
	}

	public void setToCategory(String toCategory) {
		this.toCategory = toCategory;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getLastUpdateDate() {
		return lastUpdateDate;
	}

	public void setLastUpdateDate(String lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}

	public int getStatus() {
		return status;
	}

	public String getAccounting() {
		return accounting;
	}

	public void setAccounting(String accounting) {
		this.accounting = accounting;
	}

	
}
